require(["config"],function(){
	require(["jquery","template","header"],function($,template){
		function List(){
			this.renderList();
		}
		List.prototype = {
			constructor:List,
			renderList:function(){
				$.ajax("http://rap2api.taobao.org/app/mock/86936/api/list")
				.done(function(data){
					var data = {list:data.res_body.list};
					var html = template("list_template",data);
					$(".cake-list").html(html);
				});
			}
		}
		new List();
	});
});